<template>
  <div class="orderItem">
    <div class="imgBox">
      <img class='googsIcon' v-lazy="icon" alt="">
      <div class="bestSeller">Best Seller</div>
      <div class="jiantou"></div>
    </div>
    <div class="googsName">
      Gimify 1life Stainless Steel Wall-mounted Bracket
      Folding TriangularGimify 1life Stainless Steel Wall-mounted Bracket
      Folding TriangularGimify 1life Stainless Steel Wall-mounted Bracket
      Folding Triangular
    </div>
    <div class="priceBox">
      <div class="leftPrice">
        <div class="nowPrice">$ 99</div>
        <div class="oldPrice">$ 999</div>
      </div>
      <div class="add">Add</div>
    </div>

  </div>
</template>
<script type="text/ecmascript-6">
  import {mapMutations, mapGetters} from 'vuex'

  export default {
    metaInfo: {},
    components: {},
    data() {
      return {
        icon: 'http://uniqorn.oss-cn-shenzhen.aliyuncs.com/data/attached/image/20190131/5c52741003dac.png'
      }
    },
    created() {

    },
    methods: {},
  }
</script>

<style scoped lang="stylus" rel="stylesheet/stylus">
  .orderItem {
    display: flex
    flex-direction: column
    justify-content: space-between
    align-items center
    width: 344px
    min-height: 315px
    border-bottom: 1px solid #EFEFEF
    margin-right: 15px
    margin-bottom: 30px

    .imgBox {
      width: 100%
      height: 205px
      position: relative

      .googsIcon {
        width: 100%
        height: 100%
      }

      .bestSeller {
        position: absolute
        left: 0
        bottom: 0
        width: 80px
        height: 32px
        text-align: center
        line-height: 32px
        background: #FD9425
        color: #fff
        font-size: 14px
      }

      .jiantou {
        position: absolute
        left: 80px
        bottom: 0
        width: 0
        height: 0
        border: 8px solid transparent
        border-top-width: 16px
        border-bottom-width: 16px
        border-top-color: #FD9425
        border-left-color: #FD9425
      }
    }

    .googsName {
      margin: 14px 0;
      color: #333333
      font-size: 14px
      word-wrap: break-word;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }

    .priceBox {
      width: 100%
      display: flex
      justify-content: space-between
      margin-bottom: 10px

      .leftPrice {
        color: #18823A
        font-size: 20px
        font-weight: bold

        .oldPrice {
          font-size: 16px
          color: #BBBBBB
          font-weight: 400
          text-decoration:line-through
        }
      }

      .add {
        width: 87px;
        height: 22px;
        border: 1px solid #3298F6;
        border-radius: 4px;
        text-align: center
        line-height: 22px
        color: #3298F6
        align-self: flex-end;
      }
    }

    .time {
      font-size: 13px;
      color: #999;
    }

    .bottom {
      margin-top: 13px;
      line-height: 12px;
    }

    .button {
      padding: 0;
      float: right;
    }

    .image {
      width: 100%;
      display: block;
    }

    .clearfix:before,
    .clearfix:after {
      display: table;
      content: "";
    }

    .clearfix:after {
      clear: both
    }
  }
</style>
